from time import sleep
from selenium import webdriver
driver=webdriver.Chrome()
driver.maximize_window()
driver.implicitly_wait(20)
driver.get("http://localhost/upload/")

driver.find_element_by_xpath('//*[text()="登录"]').click()
driver.find_element_by_css_selector('[name="username"]').send_keys("123456")
driver.find_element_by_css_selector('[name="password"]').send_keys("123456")
driver.find_element_by_css_selector('[name="submit"]').click()
driver.find_element_by_css_selector('[alt="秋冬黑色天鹅毛衣七分袖休闲套头毛衣蕾丝网纱半身裙蓬蓬裙套装"][class="B_blue"]').click()
driver.find_element_by_css_selector('[src="themes/ecmoban_meilishuo/images/goumai2.gif"]').click()
driver.find_element_by_css_selector('[src="themes/ecmoban_meilishuo/images/checkout.gif"]').click()
driver.find_element_by_css_selector('[type="image"]').click()


sleep(4)
driver.quit()




